# CMakeLists.txt for Logger Module (作为子项目)



# 源文件
set(LOGGER_SOURCES
    LogStream.cpp
    Logger.cpp
    AsyncLogger.cpp
    LogFile.cpp
    LoggerManager.cpp
)

# 头文件
set(LOGGER_HEADERS
    LogStream.h
    Logger.h
    AsyncLogger.h
    LogFile.h
    LoggerManager.h
)

# 创建静态库
add_library(logger STATIC ${LOGGER_SOURCES})

# 设置包含目录
target_include_directories(logger PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})

# 链接线程库(Linux需要)
target_link_libraries(logger PUBLIC pthread)
